package com.ruiysoft.controller.integral.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * IntegralListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-13T19:28:15.988+08:00")

public class IntegralListVo   {
  @JsonProperty("integralId")
  private Long integralId = null;

  @JsonProperty("integral")
  private Long integral = null;

  @JsonProperty("tradeTime")
  private Long tradeTime = null;

  @JsonProperty("phone")
  private String phone = null;

  public IntegralListVo integralId(Long integralId) {
    this.integralId = integralId;
    return this;
  }

  /**
   * id
   * @return integralId
  **/
  @ApiModelProperty(example = "1", value = "id")


  public Long getIntegralId() {
    return integralId;
  }

  public void setIntegralId(Long integralId) {
    this.integralId = integralId;
  }

  public IntegralListVo integral(Long integral) {
    this.integral = integral;
    return this;
  }

  /**
   * 积分余额
   * @return integral
  **/
  @ApiModelProperty(example = "1", value = "积分余额")


  public Long getIntegral() {
    return integral;
  }

  public void setIntegral(Long integral) {
    this.integral = integral;
  }

  public IntegralListVo tradeTime(Long tradeTime) {
    this.tradeTime = tradeTime;
    return this;
  }

  /**
   * 最新交易时间时间戳
   * @return tradeTime
  **/
  @ApiModelProperty(example = "1234567112", value = "最新交易时间时间戳")


  public Long getTradeTime() {
    return tradeTime;
  }

  public void setTradeTime(Long tradeTime) {
    this.tradeTime = tradeTime;
  }

  public IntegralListVo phone(String phone) {
    this.phone = phone;
    return this;
  }

  /**
   * 手机号
   * @return phone
  **/
  @ApiModelProperty(example = "1537691106", value = "手机号")


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    IntegralListVo integralListVo = (IntegralListVo) o;
    return Objects.equals(this.integralId, integralListVo.integralId) &&
        Objects.equals(this.integral, integralListVo.integral) &&
        Objects.equals(this.tradeTime, integralListVo.tradeTime) &&
        Objects.equals(this.phone, integralListVo.phone);
  }

  @Override
  public int hashCode() {
    return Objects.hash(integralId, integral, tradeTime, phone);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class IntegralListVo {\n");

    sb.append("    integralId: ").append(toIndentedString(integralId)).append("\n");
    sb.append("    integral: ").append(toIndentedString(integral)).append("\n");
    sb.append("    tradeTime: ").append(toIndentedString(tradeTime)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

